/**
 * 
 */

$(document).ready(function(){
	debug:true;

	$(".table-items .icon-remove-sign").click(function() {
		var oidItem=$(this).data('val');
	    //alert(oidItem);
	        $(this).parents("tr").animate({
	            opacity: 0
	        }, "swing", function() {
	            $(this).remove();
	        });
	        $.ajax({  
	     	    type: "POST",  
	     	    url: "delete-line",  
	     	    data: "oidLinea="+oidItem,  
	     	    success: function(){  
	     	    	$('#totalDetalleContainer').load('include/detalle-carrito.jsp #totalDetalle');
	     	    } 
	        });
	        return false;
	    });
	
	

}); 